package com.dxy.yesas2020goals.study.partone.disignprinciple.demeter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author victorydeng
 * @Classname Employee
 * @Description TODO
 * @Date 2020/2/24 22:43
 * @Created by victorydeng
 */
public class Employee {

  public void checkNumberOfCourses() {
    List<Course> courseList = new ArrayList<Course>();
    for (int i = 0; i < 20; i++) {
      courseList.add(new Course());
    }
    System.out.println("目前已发布的课程数量为：" + courseList.size());
  }
}
